{eq name="Request.action" value="edit"}
{Data:article id="request" var="vo"}
{else /}
{/eq}
<form action="__APP__/{$Request.controller}/update.html" class="child-form page-list-form layui-form layui-form-pane" method="post">
	<div class="layui-form-item">
		<label class="layui-form-label">标题</label>
		<div class="layui-input-inline input-6x">
			<input type="text" class="layui-input" name="title" value="{$vo.title}" autocomplete="off" placeholder="请填写标题" />
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">上级</label>
		<div class="layui-input-inline input-6x">
			<select name="pid">
				<option value="">请选择分组</option>
				{Data:loop var="gvo" status="1"}
				<option value="{$gvo.id}" {eq name="vo.pid" value="$gvo['id']" } selected="selected" {/eq}>{$gvo.title}</option>
				{/Data:loop}
			</select>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">模块</label>
		<div class="layui-input-inline input-6x">
			<input type="text" class="layui-input" name="module" value="{$vo.module}" autocomplete="off" placeholder="请填写模块" />
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">状态</label>
		<div class="layui-input-inline input-6x">
			<input type="checkbox" name="status" value="1" lay-skin="switch" lay-text="启用|禁用"  <?php if($vo['status']!==0){echo " checked";}?> >
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">排序</label>
		<div class="layui-input-inline input-6x">
			<input type="text" class="layui-input" name="sort" value="{$vo.sort}" autocomplete="off" placeholder="请填写排序数字" />
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-input-inline input-6x">
			<button type="submit" class="layui-btn" lay-submit="" lay-filter="formSubmit">提交</button>
		</div>
	</div>
	<input type="hidden" name="id" value="{$vo.id}" />
</form>